﻿<link rel="stylesheet" type="text/css" href="<?php echo base_url('common/home')?>/css/style.css" />
<script type="text/javascript" src="<?php echo base_url('common/home')?>/js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>common/layer/layer.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>common/home/js/jquery.form.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>common/home/js/jquery.validate.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>common/home/js/additional-methods.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>common/home/js/validate.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>common/home/js/validateForm.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>common/js/jquery.Msg.js"></script>

<script type="text/javascript">
    $(function () {
        var index = parent.layer.getFrameIndex(window.name);
        $(".hCloseReg").click(function () {
            parent.layer.close(index);
        });

        $(".dologin").click(function () {
            parent.dologin(index);
        });
        $.validate_register('ajax_form', 1);
    })
    function Success(data) {
        if (data.Statu == 'ok') {
            parent.register_success(parent.layer.getFrameIndex(window.name));
        } else {
            parent.register_fail(parent.layer.getFrameIndex(window.name));
        }        
    }
</script>
<!--弹框 begin-->
<div class="hMask" style="display:block;">
    <!--注册 begin-->
    <div class="hReg" style="display:block;margin:0 auto 0;">
        <img class="hClose hCloseReg" src="<?php echo base_url('common/home')?>/img/hClose.png" width="22" height="21" alt="" />
        <h1>会员注册</h1>
        <form id="ajax_form" method="post" action="<?php echo site_url('login/do_register')?>" style="margin-bottom:0;">
            <input id="addtime" name="addtime" class="hUserName" type="hidden" value="<?php echo date('Y-m-d H:i:s')?>"/>
            <input id="account" name="account" class="hUserName" type="text" placeholder="请输入用户名" />
            <input id="email" name="email" class="hEmail" type="text" placeholder="请输邮箱地址" />
            <input id="phone" name="phone" class="hMobile" type="text" placeholder="请输手机号码" />
            <input id="pass" name="pass" class="hPassword" type="password" placeholder="请输密码" />
            <input id="passconf" name="passconf" class="hConfirmPwd" type="password" placeholder="确认密码" />
            <div class="hGoLogin">已经注册？ <span class="dologin">立即登陆</span></div>
            <input class="hRegBtns" type="submit" value="注    册" />
        </form>
    </div>
    <!--注册 end-->
  
</div>
<!--弹框 end-->
